
<div id="modal-cadastrar-emprestimo" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">
            Cadastrar Empréstimo
        </h3>
    </div>
    <div class="modal-body">

        <form action="<?php echo $this->baseUrl() ?>/emprestimo/cadastrar" method="post" class="form-horizontal forms" role="form">
            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><img src="<?php echo $this->baseUrl() ?>/public/img/calendario2.png" width="14" height="14"/></span> 
                        <input type="hidden" class="form-control" name="Cliente_id" value="<?php echo $this->cliente->id ?>" required>
                        <input type="date" class="form-control" name="inicio" placeholder="Data do Início do Empréstimo" maxlength="80" title="Data do Início do Empréstimo" data-placement="bottom" required>
                    </div>
                </div>
            </div>
            
            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><img src="<?php echo $this->baseUrl() ?>/public/img/calendario2.png" width="14" height="14"/></span> 
                        <input type="date" class="form-control" name="fim" placeholder="Data do Fim do Empréstimo" maxlength="80" title="Data do Fim do Empréstimo" required>
                    </div>
                </div>
            </div>   
            
            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><img src="<?php echo $this->baseUrl() ?>/public/img/oito_branco.png" width="15" height="15"/></span> 
                        <input type="number" class="form-control" name="parcelas" placeholder="Quantidade de Parcelas" maxlength="3" title="Quantidade de Parcelas" required>
                    </div>
                </div>
            </div>             

            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><img src="<?php echo $this->baseUrl() ?>/public/img/valores.png" width="15" height="15"/></span> 
                        <input type="text" class="form-control monetario" name="valor" placeholder="Valor da Parcela" maxlength="15" title="Valor da Parcela" required>
                    </div>
                </div>
            </div>     
            
            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><img src="<?php echo $this->baseUrl() ?>/public/img/edificacao.png" width="15" height="15"/></span> 
                        <select name="Banco_id">
                            <?php foreach ($this->bancos as $banco): ?>
                                <option value="<?php echo $banco->id ?>"><?php echo $banco->nome ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>
                </div>
            </div>  
            
            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><img src="<?php echo $this->baseUrl() ?>/public/img/nome.png" width="12" height="12"/></span> 
                            <select name="orgao">
                                <option value="Aeronáutica">Aeronáutica</option>
                                <option value="Exército">Exército</option>
                                <option value="Marinha">Marinha</option>
                                <option value="Prefeitura">Prefeitura</option>
                                <option value="INSS">INSS</option>
                                <option value="IPREM">IPREM</option>
                                <option value="Siape">Siape</option>
                                <option value="Outros">Outros</option>
                            </select>
                    </div>
                </div>
            </div>              
            
            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><img src="<?php echo $this->baseUrl() ?>/public/img/localizacao.png" width="12" height="12"/></span> 
                            <select name="Filial_id">
                            <?php foreach ($this->filiais as $filial): ?>
                                <option value="<?php echo $filial->id ?>"><?php echo $filial->nome ?></option>
                            <?php endforeach; ?>
                            </select>
                    </div>
                </div>
            </div>             
            
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10 btns-form">
                    <button type="submit" class="btn btn-large btn-primary">Salvar</button>
                    <button type="reset" class="btn btn-large btn-default">Limpar</button>
                </div>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Fechar</button>
    </div>
</div>


